package com.macro.client.service;

import cn.dev33.satoken.stp.SaTokenInfo;
import com.macro.mall.model.UmsAdmin;
import com.macro.mall.model.UmsMember;
import com.macro.mall.model.UmsRole;

import java.util.List;

/**
 * @ClassName UmsAdminService
 * @Description 描述
 * @Author bai
 * @Date 2024/10/22 19:05
 */
public interface UmsAdminService {

    UmsAdmin getAdminByUsername(String username);

    SaTokenInfo login(String username, String password);

    /**
     * 获取当前登录后台用户
     */
    UmsMember getCurrentAdmin();


    List<UmsRole> getRoleList(Long adminId);
}
